import {
    createStore
} from 'vuex'

const store = createStore({
    state: {
        count: 0
    },
    mutations:{
        // 第二个值为参数
        add(state,age){
            state.count+=age
        }
    }
})

export default store